<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>qt6-httpserver</Name>
        <Homepage>https://www.qt.io</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>custom, FDL, GPL3</License>
        <IsA>library</IsA>
        <Summary>Qt HTTP Server</Summary>
        <Icon>qt6-httpserver</Icon>
        <Description>Qt HTTP Server</Description>
        <Archive sha1sum="65b3700b0bf08b2e4c78c9fa0fc747b67b6c2747" type="tarxz">https://download.qt.io/official_releases/qt/6.4/6.4.2/submodules/qthttpserver-everywhere-src-6.4.2.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>ninja</Dependency>
            <Dependency versionFrom="6.4.2">qt6-base-devel</Dependency>
            <Dependency versionFrom="6.4.2">qt6-websockets-devel</Dependency>
        </BuildDependencies>
        <!--
        <Patches>
            <Patch>qt6-httpserver.patch</Patch>
            <Patch level="1">qt6-httpserver.patch</Patch>
        </Patches>
        -->
    </Source>

    <Package>
        <Name>qt6-httpserver</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="">qt6-base</Dependency>
            <Dependency versionFrom="">qt6-websockets</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/qt6/modules/</Path>
        </Files>
    </Package>

    <Package>
        <Name>qt6-httpserver-devel</Name>
        <Summary>Development files for qt6-httpserver</Summary>
        <RuntimeDependencies>
            <Dependency release="current">qt6-httpserver</Dependency>
            <Dependency versionFrom="6.4.2">qt6-base-devel</Dependency>
            <Dependency versionFrom="6.4.2">qt6-websockets-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/cmake</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2023-01-08</Date>
            <Version>6.4.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2022-10-07</Date>
            <Version>6.4.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
